# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=py3-pikepdf
_pyname=pikepdf
pkgver=1.18.0
pkgrel=0
pkgdesc="Python library for reading and writing PDF"
url="https://github.com/pikepdf/pikepdf"
arch="all"
license="MPL-2.0"
depends="py3-lxml py3-pillow py3-pybind11>=2.4.3 py3-setuptools python3"
makedepends="py3-pybind11-dev python3-dev qpdf-dev"
_pypiprefix="${_pyname%${_pyname#?}}"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
builddir=$srcdir/$_pyname-$pkgver
options="!check" # tests fail to import pikepdf

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="a51def2a5b4433ba9b8d72458d1cb36207975d5827a5328c26c50614e760c782cea341f5f5f8a78ff0b1d2bb4080a5b52f774d77f4938d9d98d581b7f6748085  pikepdf-1.18.0.tar.gz"
